package com.yf.stat.modules.total.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yf.base.api.api.dto.PagingReqDTO;
import com.yf.stat.modules.total.dto.StatTotalExamDTO;
import com.yf.stat.modules.total.dto.request.StatTotalExamReqDTO;
import com.yf.stat.modules.total.mapper.StatTotalExamMapper;
import com.yf.stat.modules.total.service.StatTotalExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* <p>
* 考试统计业务实现类
* </p>
*
* @author 聪明笨狗
* @since 2021-06-04 09:08
*/
@Service
public class StatTotalExamServiceImpl implements StatTotalExamService {

    @Autowired
    private StatTotalExamMapper baseMapper;

    @Override
    public IPage<StatTotalExamDTO> paging(PagingReqDTO<StatTotalExamReqDTO> reqDTO) {

        //转换结果
        IPage<StatTotalExamDTO> pageData = baseMapper.paging(reqDTO.toPage(), reqDTO.getParams());
        return pageData;
    }
}
